<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>header</title>
<link href="../../style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../js/jquery.min.js"></script>
<!-- <script type="text/javascript" src="js/main.js"></script> -->
</head>
<!--header-->
<body>
	<div id="header">
		<div class="header_content">
			<div class="logo total_bg"></div>
			<div class="header_tips">
				<span class="welcome">欢迎您：<i class="role"></i></span> <a
					href="javascript:parent.window.location.href= '../../login.jsp'"><span
					class="logout" style="color:white"><i class="total_bg" onclick="logout()"></i>注销</span></a>
				<span class="help"><i class="total_bg"></i>帮助</span>
			</div>
		</div>
	</div>

	<script type="text/javascript">
		$(document).ready(
				function() {

					$.ajax({
						type : "POST",
						url : "getFrame!getFrame",
						success : function(data) {
							console.log(data);
							var aa = JSON.parse(data);
							console.log(aa[0].name + aa[0].function_id
									+ aa[0].function_name + aa[0].roleId
									+ aa[0].roleName + aa[0].url);

							$(".role").text(aa[0].name_c);

						}
					});

				});

		function logout() {
			$.ajax({
				type : "POST",
				url : "logout!logout",
				success : function(data) {
				}
			});
		}
	</script>
</body>
</html>